package com.jie.flag.controller;


import com.jie.flag.pojo.Wy;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 桀燃捕通
 * @since 2021-07-12
 */
@RestController
@RequestMapping("/flag/wy")
public class WyController {

    @RequestMapping("/test")
    //@ResponseBody       //把数据返回到页面
    public String test(){
        return "对于未来你怎么看";
    }

    @RequestMapping("/wyList")
    @ResponseBody       //把数据返回到页面
    public List<Wy> wyList(){
        List<Wy> list =new ArrayList<>();

        return list;
    }
}

